/* 重置和基础样式 */
.search-area {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.operation-area {
    margin-bottom: 20px;
    padding: 10px 0;
}

.file-list-area {
    background: white;
    border-radius: 4px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

/* 表单样式 */
.form-inline .form-group {
    margin-right: 15px;
    margin-bottom: 10px;
}

.form-control {
    display: inline-block;
    width: auto;
    vertical-align: middle;
}

/* 按钮样式 */
.btn {
    margin-right: 5px;
    margin-bottom: 5px;
}

.btn-group .btn {
    margin-right: 10px;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f5f7fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: #495057;
}

.table td {
    vertical-align: middle;
    border-color: #e9ecef;
}

/* 文件图标和名称 */
.file-icon {
    margin-right: 8px;
    color: #409EFF;
    font-size: 16px;
}

.file-name {
    display: flex;
    align-items: center;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 进度条 */
.progress {
    margin-top: 10px;
    height: 20px;
}

.progress-bar {
    line-height: 20px;
    font-size: 12px;
}

/* 分页 */
.pagination-area {
    text-align: center;
    margin-top: 20px;
}

.pagination {
    margin: 0;
}

/* 模态框样式 */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    font-weight: 600;
}

/* 预览区域 */
#previewImage {
    max-width: 100%;
    max-height: 500px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#otherPreview {
    padding: 40px 20px;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-area .form-inline .form-group {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .search-area .form-inline .form-group label {
        display: inline-block;
        width: 80px;
        text-align: right;
        margin-right: 10px;
    }

    .file-name {
        max-width: 150px;
    }

    .table td, .table th {
        padding: 8px 5px;
        font-size: 12px;
    }

    .btn {
        padding: 3px 6px;
        font-size: 12px;
        margin-bottom: 3px;
    }
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.loading i {
    font-size: 24px;
    margin-bottom: 10px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #dee2e6;
}